<script src='http://cdnjs.cloudflare.com/ajax/libs/vue/1.0.26/vue.min.js'></script>
<!--标签和js分离-->
<div id="app2">
	
</div>
<script id="tpl" type="x-template">
	<p>this is xxx</p>
</script>
<script>
var vm2=new Vue({
	el:'#app2',
	template:'#tpl',
	data:{
		message:'hu hu'
	}
});
</script>
<!--模拟json-->
<div id="getjson">
<div>姓名：{{name}}</div>
<div>年龄：{{age}}</div>
<div>性别：{{sex}}</div>
<div>isMerry:{{ismerry}}</div>
</div>
<script>
var data={
	name:'zjh',
	age:'18',
	sex:'男'
};
var getjson=new Vue({
	el:'#getjson',
	data:data
});
getjson.$set('ismerry','否');
</script>
<!--组件化形式 前后端不分离时可以使用-->
